/**
 * Prop.java
 * com.xpalive.webvideo.utils
 * Function：  
 *
 * @author   xiongping
 * Copyright (c) 2016, xpalive All Rights Reserved.
*/

package com.xpalive.webvideo.utils;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName:Prop
 * Function: TODO
 *
 * @author   xiongping
 * @Date	 2016	2016年4月6日		下午9:56:38
 *
 */
@Component
public class Prop implements InitializingBean,DisposableBean {
	private static Prop prop;
	
	@Value("${video.path}")
	private String videoPath;
	
	public static String getVideoPath() {
		return Prop.prop.videoPath;
	}

	@Override
	public void destroy() throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		Prop.prop = this;
		
	}

}
